package com.deli.task.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Auther: xudeli
 * @Date: 2018/9/28/028 29
 * @Description:
 */
@Service
public class AsyncService {

    @Async
    public void hello() {

        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("------data process loading------");
    }
}
